package com.summer.main;

import com.google.gson.Gson;

//import cn.gjing.http.HttpClient;
//import cn.gjing.http.HttpClientFactory;
//import cn.gjing.http.HttpMethod;

import java.util.HashMap;
import java.util.Map;


public class WechatHttp {

	public static void main(String[] args) {
		Gson gson = new Gson();

		
		
		// String content1 =
		// sendPostRequest("https://show.belle.net.cn/showLogin/login",gson.toJson(new
		// Param()));
		String url = "https://servicewechat.com/wxf8e9886ac9480eba/115/page-frame.html";
//		String url = "https://show.belle.net.cn/tracking";
//		String url = "https://show.belle.net.cn/showLogin/login";
//		String url = "https://show.belle.net.cn/content/indexNew?start=0&end=10&listType=1&optionKeys=&sign=a6a857f213ca3a4d4c377a0779354958&nonceStr=gccsi2815nj4hfv336z6ei&stm=1570007642889";

		Map<String, String> header = new HashMap<>();
//		header.put("Content-Type", "application/Json; charset=UTF-8");
//		header.put("user-agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/7.0.8(0x17000820) NetType/4G Language/zh_CN");
		header.put("user-agent", "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/7.0.8(0x17000820) NetType/WIFI Language/zh_CN");
//		header.put("accept-encoding", "gzip, deflate");
//		header.put("version", "2.0.9");
//		header.put("referer", "https://servicewechat.com/wxf8e9886ac9480eba/115/page-frame.html");
		header.put("token", "eyJvcGVuSWQiOiJvVGNWNjVhMjRuckRrbFg0bDk1S18wdHBMNEZFIiwic2NyZXdJZCI6Ind4ZjhlOTg4NmFjOTQ4MGViYSIsInVzZXJJZCI6IjlhMTRmNzY5ZjQ3MjRlNjZiZDM3ZjBkMjhjZTg1NTQ3In0..76c65e59782446f0857829172470ce81");
		
		Map<String, String> param = new HashMap<>();
		param.put("code", "023eJIAu05u44j1eqqCu0D5NAu0eJIA9");
		param.put("appid", "wxf8e9886ac9480eba");
		param.put("sign", "8c8b056d8d2f497b58686a7beaa4992b");
		param.put("nonceStr", "w58iimu4rxhahn6di89xp3nmildn4043s9bj7sd372v0jdobt9");
		param.put("stm", "1570000945018l");
		
//		HttpClient httpClient = HttpClientFactory.builder(url, HttpMethod.GET);
////		httpClient.withParam(param);
//		httpClient.withHeader(header);
//		String content2 = httpClient.execute(String.class);
		
//		System.out.println(content2);
	}


	public static class Param {
		public String code = "023eJIAu05u44j1eqqCu0D5NAu0eJIA9";
		public String appid = "wxf8e9886ac9480eba";
		public String sign = "8c8b056d8d2f497b58686a7beaa4992b";
		public String nonceStr = "w58iimu4rxhahn6di89xp3nmildn4043s9bj7sd372v0jdobt9";
		public long stm = 1570000945018l;
	}
//	{
//		"sysinfo": {
//			"brand": "microsoft",
//			"fontSizeSetting": 15,
//			"language": "zh_CN",
//			"model": "microsoft",
//			"pixelRatio": 1.75,
//			"platform": "windows",
//			"power": 100,
//			"screenHeight": 1029,
//			"screenWidth": 1646,
//			"statusBarHeight": 20,
//			"system": "win10",
//			"version": "7.0.4",
//			"windowHeight": 674,
//			"windowWidth": 480,
//			"SDKVersion": "2.7.0"
//		},
//		"options": {
//			"path": "/pages/index",
//			"query": {},
//			"scene": 1007,
//			"referrerInfo": {}
//		},
//		"event": "event",
//		"pages": [],
//		"user": {
//			"openId": "oTcV65a24nrDklX4l95K_0tpL4FE",
//			"screwId": "wxf8e9886ac9480eba",
//			"userId": "9a14f769f4724e66bd37f0d28ce85547"
//		},
//		"source": 1007,
//		"sign": "7e822c79bb25e56b87af9f41957738dd",
//		"nonceStr": "kr68ifod1kntmzthsouwyiudix7vwnl7ofro0sbtg1op7xecdi",
//		"stm": 1570008224982
//	}

}
